package com.cpr.shop;

import com.cpr.shop.service.SmsService;
import com.cpr.shop.utils.VerifyCodeUtil;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author CPR
 * @Create 2025/1/24 20:08
 * @Version 1.0
 * @Description
 */
@SpringBootTest
public class testSendCode {

    @Resource
    private SmsService smsService;

    @Test
    public void test(){
        String code = VerifyCodeUtil.generateAlphaNumericCode();
        smsService.sendMessage("15919528821",code);
    }
}
